package com.aceitunaproject.shared.exceptions.gamerules;

/**
 * @author Federico Bergstein
 * 
 *         Extension of illegal action, adding data about the cargo that was
 *         insufficient
 */
public class InsufficientCargoException extends IllegalActionException {

	private static final long serialVersionUID = 1L;
	private String container;

	// TODO: perhaps more info about the container

	public InsufficientCargoException(String MaterialGood, String container) {
		super(EnumIllegalAction.CARGO_INSUFICIENT_CARGO);
		this.container = container;
	}

	/**
	 * @return the container's name
	 */
	public String getContainer() {
		return container;

	}

}
